Skip to content

Send blueprint disks & datasets to simulated sled agent #8358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

plotnick
Copy link
Contributor

Fixes #7081, fixes #8222. Tracks disks and datasets added to the blueprint in nexus-test-utils, and sends them to the appropriate simulated sled-agents.

Also adds trivial but successful execution to the test_blueprint_planner introduced in #8287.

Base automatically changed from blueprint-planner to main June 18, 2025 19:48
@plotnick plotnick force-pushed the sim-disks-from-blueprint branch from a793e4d to 3f2524b Compare June 19, 2025 16:14
Copy link
Collaborator

@davepacheco davepacheco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool!

blueprint_sleds.insert(
sled_id,
BlueprintSledConfig {
state: SledState::Active,
sled_agent_generation: Generation::new().next(),
sled_agent_generation: 4.into(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with this number? I feel like it could use a constant and comment.

@@ -1775,6 +1758,10 @@ async fn setup_with_config_impl<N: NexusServer>(
.boxed()
}),
),
(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious why this had to move to after starting Nexus. This configuration mimics what RSS would normally do, right? And that happens before Nexus starts.


for sled_agent in self.sled_agents.iter().skip(1) {
let generation = Generation::from_u32(2);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same -- where's this come from?

Comment on lines +1132 to +1133
let zones =
once(from_clone!(self.blueprint_zones)).chain(repeat(vec![]));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this constructing a structure with non-empty zones for the first sled agent and no zones for the others?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants